/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "成品库货位",TableName = "mes_Goodslocation")]
    public partial class mes_Goodslocation:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///货架
       /// </summary>
       [Display(Name ="货架")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string goodsshelves { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? status { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string create_time { get; set; }

       /// <summary>
       ///货位名称
       /// </summary>
       [Display(Name ="货位名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goodslocation_name { get; set; }

       /// <summary>
       ///货位编号
       /// </summary>
       [Display(Name ="货位编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goodslocation_no { get; set; }

       /// <summary>
       ///行
       /// </summary>
       [Display(Name ="行")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goodsshelves_row { get; set; }

       /// <summary>
       ///列
       /// </summary>
       [Display(Name ="列")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goodsshelves_column { get; set; }

       /// <summary>
       ///最大容量
       /// </summary>
       [Display(Name ="最大容量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? max_num { get; set; }

       /// <summary>
       ///已使用
       /// </summary>
       [Display(Name ="已使用")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? used_num { get; set; }

       /// <summary>
       ///仓库 id 主键
       /// </summary>
       [Display(Name ="仓库 id 主键")]
       [Column(TypeName="int")]
       public int? warehouse_id { get; set; }

       /// <summary>
       ///仓库名称
       /// </summary>
       [Display(Name ="仓库名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string warehouse_name { get; set; }

       /// <summary>
       ///仓库类型(1 原材料;2 成品;3 半成品)
       /// </summary>
       [Display(Name ="仓库类型(1 原材料;2 成品;3 半成品)")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string warehouse_type { get; set; }

       /// <summary>
       ///是否默认
       /// </summary>
       [Display(Name ="是否默认")]
       [Column(TypeName="int")]
       public int? is_default { get; set; }

       
    }
}